﻿using System.Collections.Generic;

namespace Ayatta.Service.Product.Index.Domain
{
    public class LuceneQueryParam
    {
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
        public string HighlightField { get; set; }
        public Lucene.Net.Search.Query Query { get; set; }
        public Lucene.Net.Search.Filter Filter { get; set; }
        public Lucene.Net.Search.Sort Sort { get; set; }

        public LuceneQueryParam(Lucene.Net.Search.Query query)
            : this(1, 20, query)
        {

        }

        public LuceneQueryParam(int pageIndex, int pageSize, Lucene.Net.Search.Query query)
        {
            PageIndex = pageIndex;
            PageSize = pageSize;
            Query = query;
        }

    }
}